<?php

namespace App\Containers\AppSection\Moneybox\Actions;

use App\Containers\AppSection\Moneybox\Tasks\GenerateUuidAndIdTask;
use App\Ship\Parents\Actions\Action;

class ConnectionCheckAction extends Action
{
    public function run()
    {
        $data = app(GenerateUuidAndIdTask::class)->run();
        $request = [
            'uuid' => $data['uuid'],
            'p2p_id' => $data['p2p_id'],
            'text' => 'echo'
        ];

        app(SendDataSubAction::class)->run($request['uuid'], 'echo/', $request);
    }
}
